import service from './axios'
/**
 * POST 请求封装
*/
export function apiPost(url, data) {
  return service({
    url: url,
    method: 'post',
    data
  })
}

/**
 * GET 请求封装
*/
export function apiGet(url, params) {
  return service({
    url: url,
    method: 'get',
    params
  })
}

/**
 * PUT 请求封装
*/
export function apiPut(url, data) {
  return service({
    url: url,
    method: 'put',
    data
  })
}
/**
 * DELETE 请求封装
*/
export function apiDelete(url, data) {
  return service({
    url: url,
    method: 'delete',
    data
  })
}